package cate.common.table.call.sheet;

import cate.common.table.ESheet;
import cate.common.table.call.row.CallDupWeightRow;
import com.fasterxml.jackson.annotation.JsonIgnore;

public class CallDupWeightSheet extends ESheet<CallDupWeightRow> {
    @Override
    public String getSheetName() {
        return "双生概率";
    }

    @JsonIgnore
    public CallDupWeightRow getByHeroId(int heroId) {
        for (CallDupWeightRow row : getList()) {
            if (row.heroId == heroId) {
                return row;
            }
        }
        return null;
    }
}
